#ifndef SOPENDIALOG_H_
#define SOPENDIALOG_H_
#include "Protocol/SBPacket.h"

//clasa : SOpenDialod
//h    -paczka budowana
class SOpenDialog : public CSPacket
{
int _idDialog;		//id dialogu
public:
	SOpenDialog(int idDialog):CSPacket()
	{
	_idDialog=idDialog;
		MyName="F340 Open Dialog";
	};
	 ~SOpenDialog(){};
	HexBuff * build()
	{
	unsigned char t[]=

    
{0xC1,0x07 ,0xF3 ,0x40 ,0x01 ,0x02 
,		
0xc2, 0x00, 0xf0, 0x31, 0x00, 0x27, 0x00, 0xc0, 
0x00, 0x01, 0x80, 0x00, 0x01, 0xc1, 0x00, 0x01, 
0x80, 0x00, 0x02, 0xc2, 0x00, 0x01, 0x80, 0x00, 
0x03, 0xc3, 0x00, 0x01, 0x80, 0x00, 0x04, 0xc4, 
0x00, 0x01, 0x80, 0x00, 0x05, 0xc5, 0x00, 0x01, 
0x80, 0x00, 0x06, 0xc6, 0x00, 0x01, 0x80, 0x00, 
0x07, 0xc8, 0x00, 0x01, 0x80, 0x00, 0x08, 0xc0, 
0x00, 0x03, 0x80, 0x00, 0x09, 0xc1, 0x00, 0x03, 
0x80, 0x00, 0x0a, 0xc2, 0x00, 0x03, 0x80, 0x00, 
0x0b, 0xc3, 0x00, 0x03, 0x80, 0x00, 0x0c, 0xc4, 
0x00, 0x03, 0x80, 0x00, 0x0d, 0xc5, 0x00, 0x03, 
0x80, 0x00, 0x0e, 0xc6, 0x00, 0x03, 0x80, 0x00, 
0x0f, 0xc8, 0x00, 0x03, 0x80, 0x00, 0x10, 0xc0, 
0x08, 0x01, 0x80, 0x00, 0x11, 0xc1, 0x08, 0x01, 
0x80, 0x00, 0x12, 0xc2, 0x08, 0x01, 0x80, 0x00, 
0x13, 0xc3, 0x08, 0x01, 0x80, 0x00, 0x14, 0xc0, 
0x08, 0x03, 0x80, 0x00, 0x15, 0xc1, 0x08, 0x03, 
0x80, 0x00, 0x16, 0xc2, 0x08, 0x03, 0x80, 0x00, 
0x17, 0xc3, 0x08, 0x03, 0x80, 0x00, 0x18, 0xea, 
0x00, 0x16, 0x00, 0x00, 0x1a, 0xec, 0x00, 0x20, 
0x00, 0x00, 0x1c, 0x0a, 0x00, 0x16, 0x80, 0x00, 
0x1e, 0x0c, 0x00, 0x20, 0x80, 0x00, 0x28, 0x2a, 
0x00, 0x16, 0x80, 0x00, 0x2a, 0x2c, 0x00, 0x20, 
0x80, 0x00, 0x2c, 0x4a, 0x00, 0x16, 0x80, 0x00, 
0x2e, 0x6a, 0x00, 0x16, 0x80, 0x00, 0x38, 0xeb, 
0x00, 0x1a, 0x00, 0x00, 0x3a, 0x0b, 0x00, 0x1a, 
0x80, 0x00, 0x3c, 0x2b, 0x00, 0x1a, 0x80, 0x00, 
0x3e, 0x4b, 0x00, 0x1a, 0x80, 0x00, 0x48, 0x6b, 
0x00, 0x1a, 0x80, 0x00, 0x4a, 0xca, 0x00, 0x01, 
0x80, 0x00, 0x4b, 0x88, 0x00, 0x00, 0x80, 0x00, 
0xc1, 0x06, 0xb2, 0x1a, 0x02, 0x03, 0xc1, 0x06, 
0x14, 0x01, 0x06, 0x0b ,0x00,0x00};

	(*h)[0].writeAC(t,0x07);//+0xf0);
	//(*h)[4].writeI(_idDialog,false);
	
	
	return h;
	};
	
};

#endif /*SOPENDIALOG_H_*/
